package com.ruoyi.tzzl.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;

import java.util.Date;

/**
 * 用户支付订单记录对象 wz_pay_order_record
 * @author by caoyong
 * @date 2022/12/19
 **/
@Data
@TableName("wz_pay_order_record")
public class WzPayOrderRecord {

    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**支付金额*/
    private Double payAmount;

    /**友币*/
    private Long friend;

    /** 用户id */
    @Excel(name = "用户id")
    private Long wid;

    /** 付呗订单号 */
    @Excel(name = "付呗订单号")
    private String orderSn;

    /** 商家订单号 */
    @Excel(name = "商家订单号")
    private String tradeNo;

    /** 创建时间 */
    @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 支付成功时间 */
    @Excel(name = "支付成功时间" , width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    /** 状态(0-待支付  1-已支付) */
    @Excel(name = "状态(0-待支付  1-已支付)")
    private String state;

    /** 删除标志（0代表存在 2代表删除） */
    @TableField(exist = false)
    private String delFlag;


}

